home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Utilities / Winter Shell 1.0d2 / Source / Libraries / RadioLib / RadioLib.h < prev   
Encoding:
C/C++ Source or Header  |  1993-12-23  |  1.2 KB  |  33 lines  |  [TEXT/KAHL]

  1. #pragma once
  2.  
  3. /* an item in the radio button group */
  4. typedef struct {
  5.     ControlHandle ctl;
  6.     short id;
  7. } RadioItemType;
  8.  
  9. typedef struct {
  10.     WindowPtr window;    /* window containing radio group */
  11.     RadioItemType item;    /* last radio button clicked */
  12.     short nitems;        /* number of radio buttons */
  13.     Rect frame;            /* frame around buttons */
  14.     Rect title;            /* rectangle containing title */
  15.     RgnHandle clipRgn;    /* for setting clip region */
  16.     RgnHandle saveClip;    /* for saving/restoring clip region */
  17.     /* followed by dynamically sized array of radio buttons */
  18. } RadioType, *RadioPtr, **RadioHandle;
  19.  
  20. Boolean RadioValid(RadioHandle radio);
  21. void RadioEnd(RadioHandle radio);
  22. RadioHandle RadioBegin(WindowPtr window, const Rect *frame, const Rect *title);
  23. void RadioAdd(RadioHandle radio, ControlHandle ctl, short id);
  24. void RadioClick(RadioHandle radio, ControlHandle ctl);
  25. void RadioClickID(RadioHandle radio, short id);
  26. ControlHandle RadioSelected(RadioHandle radio);
  27. short RadioSelectedID(RadioHandle radio);
  28. void RadioUpdate(RadioHandle radio);
  29. Boolean RadioWithin(RadioHandle radio, Point where);
  30. Boolean RadioMouseDown(RadioHandle radio, EventRecord *event);
  31. const /* EventTableType */ void *RadioEventTable(void);
  32. void RadioEventTableRegister(void);
  33.